#define _CRT_SECURE_NO_WARNINGS 1
#include<bits/stdc++.h>
using namespace std;
#define ll long long
#define endl '\n'
int f[20];

int main() {
	ios::sync_with_stdio(0), cin.tie(0), cout.tie(0);
	int n; cin >> n;
	f[0] = 1;
	f[1] = 1;
	for (int i = 2; i <= n; i++) {
		for (int k = 1; k <= i; k++) {
			f[i] += f[k - 1] * f[i - k];
		}
	}
	cout << f[n] << endl;
	return 0;
}